package com.jinxin.platform.cdcardpassmgr.task;

import com.jinxin.platform.cdcardpassmgr.rpc.CdcardpassmgrRpc;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Description: bccah
 * Created by 34759 on 2019/8/16 15:57
 */
@EnableScheduling
@Configuration
@Component
public class GpsPositionTask {

    @Autowired
    private CdcardpassmgrRpc cdcardpassmgrRpc;

    /**
     * 每10分钟更新
     */
    @Scheduled(cron = "0 0/10 * * * ?  ")
    public void updateRequireTask(){
        cdcardpassmgrRpc.getStaOverview();
    }

}
